<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="app" uri="/WEB-INF/tld/app.tld" %>
<%@ taglib prefix="ct" uri="/WEB-INF/tld/commonTag.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
<%@ include file="/WEB-INF/jsp/common/common_header.jsp" %>
<%@ include file="/WEB-INF/jsp/common/common.jsp" %>


<script language="javascript">
    

        
    </script>
</head>
<body>
<div class="con_area" style="width: 900px">
<form id="form" name="form" action="" >
<input type="hidden" id="user_id" name="user_id" value="${model.user_id}"/>
<br>
<br>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
        <td align="left"><h2 class="tit">가맹점 마이너스 상세내역 </h2></td>
        
    </tr>
</table>
 <div style="margin-top:7px"/>
    <table cellpadding="0" cellspacing="1" border="0" class="data_table_01" style="width:100%;" >
    <colgroup>
        <col width="3%"/>
        <col width="12%"/>
        <col width="11%"/>
        <col width="7%"/>
        <col width="13%"/>
        <col width="10%"/>
        <col width="10%"/>
        <col width="10%"/>
        <col width="10%"/>
        <col width="15%"/>
    </colgroup>
    
    <thead>
        <tr>
            <td class=data_01 style= 'text-align:center;'>번호</td>
            <td class=data_01 style= 'text-align:center;'>거래일</td>
            <td class=data_01 style= 'text-align:center;'>거래시간</td>
            <td class=data_01 style= 'text-align:center;'>구분</td>
            <td class=data_01 style= 'text-align:center;'>내용</td>
            <td class=data_01 style= 'text-align:center;'>지급금액</td>
            <td class=data_01 style= 'text-align:center;'>실입금액</td>
            <td class=data_01 style= 'text-align:center;'>회수금액</td>
            <td class=data_01 style= 'text-align:center;'>수수료</td>
            <td class=data_01 style= 'text-align:center;'>잔액</td>

        </tr>
    </thead>
    <tbody>
<c:if test='${empty minusListDetailInfo}'>    
    <tr>
        <td colspan="10" align =center>
            <span style="padding-top:3px;*padding-top:2px;"><strong>조회된 데이터가 존재하지 않습니다.</strong></span>
        </td>
    </tr>
</c:if>
<c:set var="prodAmtTot" value="0"/>
<c:set var="totalProdAmtTot" value="0"/>
<c:if test='${not empty minusListDetailInfo}'>
	<c:forEach var="vo" items="${minusListDetailInfo}"  varStatus="status">

	    <tr onMouseOver="this.style.background='#FFF9E1'" onMouseOut="this.style.background='#FFFFFF'" height ="8">
	        <td style="text-align:center;">${minusListDetailInfo.size() - status.index}</td>
	        <td style="text-align:center;">${vo.transDate}<ct:getDay day="${vo.transWeekDay}"/></td>
	        <td style="text-align:center;">${vo.transTime}</td>
	        <td style="text-align:center;">
									<c:choose>
									    <c:when test="${vo.flagCd eq 20}">
									       회수
									    </c:when>
									    <c:otherwise>
									        <font color="red">지급</font>
									    </c:otherwise>
									</c:choose>	        
	        </td>
	        <td style="text-align:center;">${vo.cardDetail}</td>
	        <td style="text-align:right;"><fmt:formatNumber value="${vo.payProdAmt}" pattern="#,###" />&nbsp;&nbsp;</td>
	        <td style="text-align:right;"><fmt:formatNumber value="${vo.oriProdAmt}" pattern="#,###" />&nbsp;&nbsp;</td>
	        <td style="text-align:right;"><fmt:formatNumber value="${vo.prodAmt}" pattern="#,###" />&nbsp;&nbsp;</td>
	        <td style="text-align:right;"><fmt:formatNumber value="${vo.prodAmtFee}" pattern="#,###" />&nbsp;&nbsp;</td>
	        <td style="text-align:right;"><fmt:formatNumber value="${vo.totalProdAmt}" pattern="#,###" />&nbsp;&nbsp;</td>
	    </tr>
    </c:forEach>
</c:if>
    </tbody>
    </table>
    <br>

</form>
</div>
</body>

